<!-- 数据列表 -->
<div class="data-table with-padding data-view">
    <table class="table table-bordered table-striped ">
        <thead>
        <tr>
            <th class="row-selected row-selected"><input class="check-all" data-target=".ids" type="checkbox"></th>
            <th class="hidden">编号</th>
            <th class="">姓名</th>
            <th>咨询者电话</th>
            <th class="">QQ</th>
            <th class="">咨询师</th>
            <th class="">网络咨询师</th>
            <th class="">任务状态</th>
            <th class="">网咨等级</th>
            <th class="">咨询等级</th>
            <th class="">创建时间</th>
            <th class="">最后更新时间</th>
            <th class="">操作</th>
        </tr>
        </thead>
        <tbody>
        {% if task_list %}
        {% for t in task_list %}
            <tr class="{{ t.addition_class }}">
                <td>{% if current_uid  == t.uid or HasPermission('Common_Setup_Task') or HasPermission('common_query_task') %}
                        <input class="ids" type="checkbox" value="{{ t.task_id }}">
                    {% endif %}</td>
                <td class="hidden">{{ t.task_id }}
                </td>
                <td class="{% if t.setup_now == 1 and t.has_distribution == 0 %}hurry-up{% endif %}">
                    {{ t.contact_name }}
                    {% if t.setup_now == 1 and t.has_distribution == 0 %}<em class="icon"></em>{% endif %}
                </td>
                <td>{{ t.phone }}</td>
                <td>{{ t.qq }}</td>
                <td>{% if t.has_distribution == 1  %}{{ t.currentOwner }} {% endif %}</td>
                <td>{{ t.taskCreator }}</td>
                <td>{{ TaskState(t.task_state) }}</td>
                <td>{{ t.task_level }}级</td>
                <td>{% if t.task_level1  %}{{ t.task_level1 }}级{% else %}- {% endif %}</td>
                <td><span>{{ t.create_dateline|date("Y-m-d H:i") }}</span></td>
                <td><span>{{ t.last_update_time ? t.last_update_time|date("Y-m-d H:i"):'-' }}</span></td>
                <td>
                    <a href="task/{{ t.task_no }}.html" onclick="return parent.osw.openTask(this.href);" class="authorize{{ UserPermission('ViewTaskDetail') }}">详情</a>
                    {% if (current_uid == t.uid or HasPermission('Common_Setup_Task')) and t.has_distribution == 0 %}
                    <a href="task.setup.user?task={{ t.task_id }}" data-target="user.select" class="setup{{ UserPermission('Setup_Task') }}">分配</a>
                    {% endif %}
                    {% if (group_is_zxszg or current_uid==t.uid) and t.has_distribution==1 %}
                    <a href="task.setup.user?task={{ t.task_id }}" data-target="user.select" class="setup">再分配</a>
                    {% endif %}
                    {% if (current_uid == t.uid or HasPermission('common_query_task')) and t.has_distribution == 1 %}
                    <a href="task.temp.user?task={{ t.task_id }}" data-target="user.select?show_more_date=date" class="setup-temp{{ UserPermission('SetTempUserForTask') }}">临时转交</a>
                    {% endif %}
                </td>
            </tr>
        {% endfor %}
        {% else %}
            <tr><td colspan="12" class="text-center">暂无更多数据了</td></tr>
        {% endif %}
        </tbody>
    </table>
    <div style="height: 50px;"></div>
</div>
<div class="ajax-page">
    <!-- 数据信息及分页 -->
    {% include 'block/page.twig' %}
</div>